home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
preccx
/
prccx240.lha
/
makefile.hpu
< prev
next >
Wrap
Makefile
|
1993-05-27
|
2KB
|
99 lines
CFLAGS=-g
CC=c89
BINDIR=$$HOME/bin
EXECUTABLE=preccx
LIBDIR=.
LIBRARY=libcc.a
LIBRARIES=$(LIBDIR)/libcc.a
INCLUDEDIR=.
HEADERS=$(INCLUDEDIR)/cc.h \
$(INCLUDEDIR)/ccx.h
DOCS=history preccx.1 preccx.man \
PACKING.LST REGISTER.DOC LICENSE.DOC INSTALL.INS README \
bugs.knw
SOURCES=cc.c ccdata.c ccx.c common.c engine.c on_error.c yystuff.c preamble.c\
preccx.c c.c lex.c\
Makefile Makefile.hpu\
preccx.y preccx.h preamble.h
OBJECTS=cc.o ccdata.o ccx.o common.o engine.o on_error.o yystuff.o preamble.o\
preccx.o
PRECIOUS=preccn $(EXECUTABLE) precc preccx.c preccx.y preccn.y c.y lex.y
preccx: preccx.o preamble.o c.o lex.o $(LIBRARY)
$(CC) $(CFLAGS) -o preccx preccx.o preamble.o c.o lex.o -L $(LIBDIR) -lcc$(TOKENSIZE)
preccx.c:
echo need to remake preccx.c
echo try ./precc \< preccx.y \>\! preccx.c
c.c:
echo need to remake c.c
echo try ./precc \< c.y \>\! c.c
lex.c:
echo need to remake lex.c
echo try ./precc \< lex.y \>\! lex.c
preccx.o: preccx.c preccx.h $(INCLUDEDIR)/cc.h preamble.h
$(CC) $(CFLAGS) -c preccx.c
c.o: c.c $(INCLUDEDIR)/cc.h
$(CC) $(CFLAGS) -c c.c
lex.o: lex.c $(INCLUDEDIR)/cc.h
$(CC) $(CFLAGS) -c lex.c
preamble.o: preamble.c preamble.h
$(CC) $(CFLAGS) -c preamble.c
library: $(LIBRARY)
$(LIBRARY): cc.o ccx.o engine.o common.o ccdata.o yystuff.o on_error.o ccdata.o
ar rv $(LIBRARY) cc.o ccx.o engine.o common.o ccdata.o yystuff.o on_error.o
cc.o: cc.c cc.h
$(CC) $(CFLAGS) -c cc.c
ccx.o: ccx.c ccx.h
$(CC) $(CFLAGS) -c ccx.c
common.o: common.c cc.h
$(CC) $(CFLAGS) -c common.c
engine.o: engine.c cc.h
$(CC) $(CFLAGS) -c engine.c
ccdata.o: ccdata.c cc.h
$(CC) $(CFLAGS) -c ccdata.c
yystuff.o: yystuff.c cc.h
$(CC) $(CFLAGS) -c yystuff.c
on_error.o: on_error.c cc.h
$(CC) $(CFLAGS) -c on_error.c
install: $(EXECUTABLE) $(LIBRARY)
- cp $(EXECUTABLE) $(BINDIR)
- cp $(LIBRARY) $(LIBDIR)
clean:
- rm $(OBJECTS)
- if [ -f $(BINDIR)/preccx ] ; then rm preccx ; fi
- if [ -f $(LIBDIR)/$(LIBRARY) ] ; then rm $(LIBRARY) ; fi
distribution:
- ZIP preccxd.zip $(DOCS)
- ZIP preccxx.zip $(EXECUTABLE)
- ZIP preccxi.zip $(HEADERS)
- ZIP preccxl.zip $(LIBRARIES)